package com.spi;


import java.util.ServiceLoader;

/**
 * @author liuli31
 * @date 2021/10/20
 */
public class SPITest {
    public static void main(String[] args) {
        ServiceLoader<UploadCDN> uploadCDN = ServiceLoader.load(UploadCDN.class);
        for (UploadCDN u : uploadCDN) {
            u.upload("filePath");
        }
    }
}
